<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>社交文章列表 - 手机端</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #3b7adb;
            --primary-light: #5a91e6;
            --gray-light: #f5f5f5;
            --gray: #e0e0e0;
            --text-dark: #333333;
            --text-gray: #666666;
            --text-light: #999999;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #fafafa;
            color: var(--text-dark);
            padding-top: 56px;
            line-height: 1.5;
        }
        
        /* 导航栏样式 */
        .navbar {
            height: 56px;
            background-color: white;
            border-bottom: 1px solid var(--gray);
            padding: 0 16px;
        }
        
        .navbar-brand {
            color: var(--primary);
            font-weight: 600;
            font-size: 1.2rem;
        }
        
        .nav-icons {
            display: flex;
            gap: 16px;
            font-size: 1.2rem;
            color: var(--text-dark);
        }
        
        /* 标签切换栏 */
        .tabs {
            display: flex;
            overflow-x: auto;
            background-color: white;
            border-bottom: 1px solid var(--gray);
            padding: 12px 16px;
        }
        
        .tab {
            padding: 6px 16px;
            white-space: nowrap;
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-gray);
            border-radius: 20px;
            margin-right: 8px;
        }
        
        .tab.active {
            background-color: var(--primary);
            color: white;
        }
        
        /* 文章列表通用样式 */
        .article-section {
            margin-bottom: 24px;
        }
        
        .section-title {
            padding: 16px;
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-dark);
        }
        
        .article-list {
            background-color: white;
        }
        
        .article-item {
            border-bottom: 1px solid var(--gray-light);
            padding: 16px;
            transition: background-color 0.2s;
        }
        
        .article-item:last-child {
            border-bottom: none;
        }
        
        .article-item:hover {
            background-color: var(--gray-light);
        }
        
        .author {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 10px;
        }
        
        .author-info {
            flex: 1;
        }
        
        .author-name {
            font-weight: 500;
            font-size: 0.9rem;
            color: var(--text-dark);
        }
        
        .post-time {
            font-size: 0.8rem;
            color: var(--text-light);
        }
        
        .article-content {
            margin-bottom: 12px;
        }
        
        .article-title {
            font-weight: 600;
            margin-bottom: 8px;
            line-height: 1.4;
        }
        
        .article-excerpt {
            font-size: 0.9rem;
            color: var(--text-gray);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .article-actions {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--text-light);
        }
        
        .action-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        /* 单图样式 */
        .single-image {
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 12px;
        }
        
        .single-image img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        /* 多图样式 */
        .multi-images {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            margin-bottom: 12px;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .multi-images img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            aspect-ratio: 1/1;
        }
        
        /* 无图样式 */
        .no-image .article-content {
            margin-bottom: 0;
        }
        
        /* 左侧小图样式 */
        .left-image-item {
            display: flex;
            gap: 12px;
        }
        
        .left-image {
            width: 90px;
            height: 90px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .left-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .left-image-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .left-image-content .article-excerpt {
            flex: 1;
        }
        
        /* 卡片式样式 */
        .card-style {
            padding: 0;
            margin: 0 16px 16px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            border: none;
        }
        
        .card-image {
            width: 100%;
            height: 180px;
            position: relative;
        }
        
        .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .card-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background-color: rgba(0,0,0,0.5);
            color: white;
            font-size: 0.75rem;
            padding: 3px 8px;
            border-radius: 4px;
        }
        
        .card-body {
            padding: 16px;
        }
        
        .card-footer {
            padding: 0 16px 16px;
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--text-light);
        }
        
        /* 加载更多 */
        .load-more {
            text-align: center;
            padding: 16px;
        }
        
        .load-more-btn {
            background-color: white;
            border: 1px solid var(--primary);
            color: var(--primary);
            padding: 8px 24px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.2s;
        }
        
        .load-more-btn:hover {
            background-color: var(--primary);
            color: white;
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: white;
            border-top: 1px solid var(--gray);
            display: flex;
            justify-content: space-around;
            align-items: center;
            z-index: 1000;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 0.7rem;
            color: var(--text-light);
        }
        
        .nav-item i {
            font-size: 1.2rem;
            margin-bottom: 4px;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
        
        /* 适配小屏幕 */
        @media (max-width: 375px) {
            .article-title {
                font-size: 0.95rem;
            }
            
            .card-image {
                height: 150px;
            }
        }
    </style>
</head>
<body>
    <!-- 顶部导航栏 -->
    <nav class="navbar fixed-top">
        <div class="container-fluid d-flex justify-content-between align-items-center">
            <a class="navbar-brand" href="#">社交圈</a>
            <div class="nav-icons">
                <i class="fas fa-search"></i>
                <i class="fas fa-plus-square"></i>
            </div>
        </div>
    </nav>
    
    <!-- 标签切换 -->
    <div class="tabs">
        <div class="tab active">推荐</div>
        <div class="tab">关注</div>
        <div class="tab">热点</div>
        <div class="tab">科技</div>
        <div class="tab">生活</div>
        <div class="tab">美食</div>
        <div class="tab">旅行</div>
    </div>
    
    <!-- 单图文章列表 -->
    <section class="article-section">
        <h2 class="section-title">精选推荐</h2>
        <div class="article-list">
            <div class="article-item">
                <div class="author">
                    <img src="https://picsum.photos/id/64/100" alt="作者头像" class="avatar">
                    <div class="author-info">
                        <div class="author-name">旅行日记</div>
                        <div class="post-time">2小时前</div>
                    </div>
                    <i class="fas fa-ellipsis-h"></i>
                </div>
                <div class="article-content">
                    <h3 class="article-title">隐藏在城市角落的小众咖啡馆，每一处都有独特的故事</h3>
                    <p class="article-excerpt">在繁忙的都市生活中，总有一些隐藏在角落的咖啡馆，它们或许没有连锁品牌的名气，却有着自己独特的风格和故事。今天带大家探访三家我私藏的宝藏咖啡馆...</p>
                    <div class="single-image">
                        <img src="https://picsum.photos/id/431/600/400" alt="文章图片">
                    </div>
                </div>
                <div class="article-actions">
                    <div class="action-item"><i class="far fa-heart"></i> 245</div>
                    <div class="action-item"><i class="far fa-comment"></i> 36</div>
                    <div class="action-item"><i class="far fa-share-square"></i> 12</div>
                    <div class="action-item"><i class="far fa-bookmark"></i></div>
                </div>
            </div>
            
            <div class="article-item">
                <div class="author">
                    <img src="https://picsum.photos/id/65/100" alt="作者头像" class="avatar">
                    <div class="author-info">
                        <div class="author-name">摄影记录者</div>
                        <div class="post-time">昨天 18:30</div>
                    </div>
                    <i class="fas fa-ellipsis-h"></i>
                </div>
                <div class="article-content">
                    <h3 class="article-title">如何用手机拍出专业级别的城市夜景照片</h3>
                    <p class="article-excerpt">很多人认为拍好夜景需要专业相机，其实现在的智能手机已经足够强大，只要掌握一些技巧，也能拍出令人惊艳的城市夜景。本文分享几个实用技巧...</p>
                    <div class="single-image">
                        <img src="https://picsum.photos/id/944/600/400" alt="文章图片">
                    </div>
                </div>
                <div class="article-actions">
                    <div class="action-item"><i class="far fa-heart"></i> 562</div>
                    <div class="action-item"><i class="far fa-comment"></i> 89</div>
                    <div class="action-item"><i class="far fa-share-square"></i> 42</div>
                    <div class="action-item"><i class="far fa-bookmark"></i></div>
                </div>
            </div>
        </div>
    </section>
    
    <!-- 多图文章列表 -->
    <section class="article-section">
        <h2 class="section-title">生活分享</h2>
        <div class="article-list">
            <div class="article-item">
                <div class="author">
                    <img src="https://picsum.photos/id/26/100" alt="作者头像" class="avatar">
                    <div class="author-info">
                        <div class="author-name">美食家小A</div>
                        <div class="post-time">3天前</div>
                    </div>
                    <i class="fas fa-ellipsis-h"></i>
                </div>
                <div class="article-content">
                    <h3 class="article-title">周末在家尝试做的三道家常菜，简单又美味</h3>
                    <p class="article-excerpt">周末不想出门，在家研究了几道简单又美味的家常菜，做法简单，食材也容易获取，特别适合厨房新手尝试。分享给大家...</p>
                    <div class="multi-images">
                        <img src="https://picsum.photos/id/292/300" alt="美食图片1">
                        <img src="https://picsum.photos/id/431/300" alt="美食图片2">
                        <img src="https://picsum.photos/id/312/300" alt="美食图片3">
                    </div>
                </div>
                <div class="article-actions">
                    <div class="action-item"><i class="far fa-heart"></i> 328</div>
                    <div class="action-item"><i class="far fa-comment"></i> 64</div>
                    <div class="action-item"><i class="far fa-share-square"></i> 28</div>
                    <div class="action-item"><i class="far fa-bookmark"></i></div>
                </div>
            </div>
            
            <div class="article-item">
                <div class="author">
                    <img src="https://picsum.photos/id/91/100" alt="作者头像" class="avatar">
                    <div class="author-info">
                        <div class="author-name">户外探险</div>
                        <div class="post-time">4天前</div>
                    </div>
                    <i class="fas fa-ellipsis-h"></i>
                </div>
                <div class="article-content">
                    <h3 class="article-title">徒步穿越山林的一天，遇见了意想不到的美景</h3>
                    <p class="article-excerpt">周末和朋友们一起去了附近的山林徒步，虽然路途有些辛苦，但沿途的风景绝对值得。特别是山顶的云海，简直美不胜收...</p>
                    <div class="multi-images">
                        <img src="https://picsum.photos/id/10/300" alt="徒步图片1">
                        <img src="https://picsum.photos/id/15/300" alt="徒步图片2">
                        <img src="https://picsum.photos/id/28/300" alt="徒步图片3">
                    </div>
                </div>
                <div class="article-actions">
                    <div class="action-item"><i class="far fa-heart"></i> 412</div>
                    <div class="action-item"><i class="far fa-comment"></i> 53</div>
                    <div class="action-item"><i class="far fa-share-square"></i> 76</div>
                    <div class="action-item"><i class="far fa-bookmark"></i></div>
                </div>
            </div>
        </div>
    </section>
    
    <!-- 无图文章列表 -->
    <section class="article-section">
        <h2 class="section-title">思想感悟</h2>
        <div class="article-list">
            <div class="article-item no-image">
                <div class="author">
                    <img src="https://picsum.photos/id/55/100" alt="作者头像" class="avatar">
                    <div class="author-info">
                        <div class="author-name">心灵随笔</div>
                        <div class="post-time">2天前</div>
                    </div>
                    <i class="fas fa-ellipsis-h"></i>
                </div>
                <div class="article-content">
                    <h3 class="article-title">独处时的思考：如何与自己和平相处</h3>
                    <p class="article-excerpt">现代社会节奏越来越快，我们总是被各种信息和社交包围，很少有机会真正独处。但独处其实是一种重要的能力，它能让我们更好地了解自己，与自己对话，找到内心的平静...</p>
                </div>
                <div class="article-actions">
                    <div class="action-item"><i class="far fa-heart"></i> 187</div>
                    <div class="action-item"><i class="far fa-comment"></i> 42</div>
                    <div class="action-item"><i class="far fa-share-square"></i> 35</div>
                    <div class="action-item"><i class="far fa-bookmark"></i></div>
                </div>
            </div>
            
            <div class="article-item no-image">
                <div class="author">
                    <img src="https://picsum.photos/id/33/100" alt="作者头像" class="avatar">
                    <div class="author-info">
                        <div class="author-name">职场分享</div>
                        <div class="post-time">5天前</div>
                    </div>
                    <i class="fas fa-ellipsis-h"></i>
                </div>
                <div class="article-content">
                    <h3 class="article-title">工作五年总结的5个高效工作习惯</h3>
                    <p class="article-excerpt">在职场打拼五年，从职场新人到能够独当一面，积累了一些实用的工作习惯。这些习惯帮助我提高工作效率，减少加班，同时保持工作与生活的平衡...</p>
                </div>
                <div class="article-actions">
                    <div class="action-item"><i class="far fa-heart"></i> 632</div>
                    <div class="action-item"><i class="far fa-comment"></i> 128</div>
                    <div class="action-item"><i class="far fa-share-square"></i> 215</div>
                    <div class="action-item"><i class="far fa-bookmark"></i></div>
                </div>
            </div>
        </div>
    </section>
    
    <!-- 左侧小图文章列表 -->
    <section class="article-section">
        <h2 class="section-title">热点资讯</h2>
        <div class="article-list">
            <div class="article-item left-image-item">
                <div class="left-image">
                    <img src="https://picsum.photos/id/180/300" alt="文章图片">
                </div>
                <div class="left-image-content">
                    <div class="author" style="margin-bottom: 8px;">
                        <img src="https://picsum.photos/id/45/100" alt="作者头像" class="avatar" style="width: 28px; height: 28px;">
                        <div class="author-info">
                            <div class="author-name" style="font-size: 0.8rem;">科技前沿</div>
                            <div class="post-time" style="font-size: 0.75rem;">1小时前</div>
                        </div>
                    </div>
                    <h3 class="article-title" style="font-size: 0.95rem;">最新研究发现：每天步行8000步可显著降低多种疾病风险</h3>
                    <p class="article-excerpt" style="-webkit-line-clamp: 2; margin-bottom: 8px;">一项针对10万人群的长期研究发现，每天保持8000步的步行量，可降低30%的心血管疾病风险...</p>
                    <div class="article-actions" style="font-size: 0.75rem;">
                        <div class="action-item"><i class="far fa-heart"></i> 1243</div>
                        <div class="action-item"><i class="far fa-comment"></i> 87</div>
                    </div>
                </div>
            </div>
            
            <div class="article-item left-image-item">
                <div class="left-image">
                    <img src="https://picsum.photos/id/239/300" alt="文章图片">
                </div>
                <div class="left-image-content">
                    <div class="author" style="margin-bottom: 8px;">
                        <img src="https://picsum.photos/id/67/100" alt="作者头像" class="avatar" style="width: 28px; height: 28px;">
                        <div class="author-info">
                            <div class="author-name" style="font-size: 0.8rem;">文化艺术</div>
                            <div class="post-time" style="font-size: 0.75rem;">3小时前</div>
                        </div>
                    </div>
                    <h3 class="article-title" style="font-size: 0.95rem;">国家博物馆将举办"丝绸之路文化展"，展出多件珍贵文物</h3>
                    <p class="article-excerpt" style="-webkit-line-clamp: 2; margin-bottom: 8px;">记者从国家博物馆获悉，下月将举办"丝绸之路文化展"，将展出包括兵马俑复制品在内的300多件珍贵文物...</p>
                    <div class="article-actions" style="font-size: 0.75rem;">
                        <div class="action-item"><i class="far fa-heart"></i> 876</div>
                        <div class="action-item"><i class="far fa-comment"></i> 43</div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    
    <!-- 卡片式文章列表 -->
    <section class="article-section">
        <h2 class="section-title">热门专题</h2>
        <div class="article-list" style="background-color: transparent; padding: 0 16px;">
            <div class="article-item card-style">
                <div class="card-image">
                    <img src="https://picsum.photos/id/325/600/400" alt="卡片图片">
                    <div class="card-badge">旅行</div>
                </div>
                <div class="card-body">
                    <div class="author" style="margin-bottom: 8px;">
                        <img src="https://picsum.photos/id/22/100" alt="作者头像" class="avatar">
                        <div class="author-info">
                            <div class="author-name">环球旅行家</div>
                            <div class="post-time">1周前</div>
                        </div>
                    </div>
                    <h3 class="article-title">欧洲小众旅行地推荐：远离喧嚣的5个宁静小镇</h3>
                    <p class="article-excerpt">如果你厌倦了欧洲热门景点的人山人海，想要体验更地道的欧洲风情，这5个小众小镇绝对值得一去。它们保留了原始的欧洲风貌，游客较少，性价比极高...</p>
                </div>
                <div class="card-footer">
                    <div class="action-item"><i class="far fa-heart"></i> 1254</div>
                    <div class="action-item"><i class="far fa-comment"></i> 189</div>
                    <div class="action-item"><i class="far fa-share-square"></i> 342</div>
                </div>
            </div>
            
            <div class="article-item card-style">
                <div class="card-image">
                    <img src="https://picsum.photos/id/365/600/400" alt="卡片图片">
                    <div class="card-badge">读书</div>
                </div>
                <div class="card-body">
                    <div class="author" style="margin-bottom: 8px;">
                        <img src="https://picsum.photos/id/42/100" alt="作者头像" class="avatar">
                        <div class="author-info">
                            <div class="author-name">书单分享</div>
                            <div class="post-time">2周前</div>
                        </div>
                    </div>
                    <h3 class="article-title">2023年必读的10本非虚构类书籍，拓宽你的认知边界</h3>
                    <p class="article-excerpt">这10本非虚构类书籍涵盖了科学、历史、心理学等多个领域，每一本都能让你从新的角度看待世界。无论是想提升自己还是开阔视野，都值得一读...</p>
                </div>
                <div class="card-footer">
                    <div class="action-item"><i class="far fa-heart"></i> 2156</div>
                    <div class="action-item"><i class="far fa-comment"></i> 328</div>
                    <div class="action-item"><i class="far fa-share-square"></i> 543</div>
                </div>
            </div>
        </div>
    </section>
    
    <!-- 加载更多 -->
    <div class="load-more">
        <button class="load-more-btn">加载更多</button>
    </div>
    
    <!-- 底部留出空间 -->
    <div style="height: 60px;"></div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <div class="nav-item active">
            <i class="fas fa-home"></i>
            <span>首页</span>
        </div>
        <div class="nav-item">
            <i class="fas fa-compass"></i>
            <span>发现</span>
        </div>
        <div class="nav-item">
            <i class="fas fa-plus-circle"></i>
            <span>发布</span>
        </div>
        <div class="nav-item">
            <i class="fas fa-bell"></i>
            <span>通知</span>
        </div>
        <div class="nav-item">
            <i class="fas fa-user"></i>
            <span>我的</span>
        </div>
    </div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 标签切换功能
        const tabs = document.querySelectorAll('.tab');
        tabs.forEach(tab => {
            tab.addEventListener('click', () => {
                tabs.forEach(t => t.classList.remove('active'));
                tab.classList.add('active');
                // 这里可以添加切换内容的逻辑
            });
        });
        
        // 文章点赞功能
        const likeButtons = document.querySelectorAll('.action-item .fa-heart');
        likeButtons.forEach(button => {
            button.addEventListener('click', (e) => {
                e.stopPropagation();
                const isLiked = button.classList.contains('fas');
                const countElement = button.parentElement.querySelector('span');
                
                if (isLiked) {
                    button.classList.remove('fas', 'text-danger');
                    button.classList.add('far');
                    countElement.textContent = parseInt(countElement.textContent) - 1;
                } else {
                    button.classList.remove('far');
                    button.classList.add('fas', 'text-danger');
                    countElement.textContent = parseInt(countElement.textContent) + 1;
                }
            });
        });
        
        // 文章收藏功能
        const bookmarkButtons = document.querySelectorAll('.action-item .fa-bookmark');
        bookmarkButtons.forEach(button => {
            button.addEventListener('click', (e) => {
                e.stopPropagation();
                if (button.classList.contains('far')) {
                    button.classList.remove('far');
                    button.classList.add('fas', 'text-primary');
                } else {
                    button.classList.remove('fas', 'text-primary');
                    button.classList.add('far');
                }
            });
        });
        
        // 加载更多功能
        const loadMoreBtn = document.querySelector('.load-more-btn');
        loadMoreBtn.addEventListener('click', () => {
            loadMoreBtn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> 加载中...';
            
            // 模拟加载延迟
            setTimeout(() => {
                loadMoreBtn.textContent = '加载更多';
                // 这里可以添加实际加载更多内容的逻辑
            }, 1500);
        });
        
        // 底部导航切换
        const navItems = document.querySelectorAll('.nav-item');
        navItems.forEach(item => {
            item.addEventListener('click', () => {
                navItems.forEach(i => i.classList.remove('active'));
                item.classList.add('active');
            });
        });
        
        // 文章点击进入详情
        const articleItems = document.querySelectorAll('.article-item');
        articleItems.forEach(item => {
            item.addEventListener('click', () => {
                // 跳转到文章详情页
                console.log('进入文章详情页');
            });
        });
    </script>
</body>
</html>
    
